#include "TCPclient.hpp"
const int BUFFER_SIZE = 1024;
const int port = 8080;
const std::string serverIP = "127.0.0.1";
int main()
{
    TCPClient client(serverIP,port);
    client.connectToServer();
    while (true)
    {
        std::string msg;
        std::cout << "请输入要发送的消息：";
        std::getline(std::cin, msg);
        client.sendMsg(msg);
        std::string recvMsg = client.receive();
        std::cout << "收到的消息：" << recvMsg << std::endl;
    }
    client.disconnect();
    return 0;
}